package com.hcb.micro.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hcb.micro.dao.interfaceClass.CashRedProductMapper;
import com.hcb.micro.dto.CashRedProduct;
import com.hcb.micro.service.ICashRedProductService;

@Service("CashRedProductService")
public class CashRedProductServiceImpl implements ICashRedProductService {

	@Autowired
	CashRedProductMapper crpm;
	
	@Override
	public int deleteByPrimaryKey(Integer id) {
		return crpm.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(CashRedProduct record) {
		return crpm.insert(record);
	}

	@Override
	public int insertSelective(CashRedProduct record) {
		return crpm.insertSelective(record);
	}

	@Override
	public CashRedProduct selectByPrimaryKey(Integer id) {
		return crpm.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKeySelective(CashRedProduct record) {
		return crpm.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(CashRedProduct record) {
		return crpm.updateByPrimaryKey(record);
	}

	@Override
	public List<CashRedProduct> selectByCashRedId(Integer cashRedId) {
		return crpm.selectByCashRedId(cashRedId);
	}

	@Override
	public CashRedProduct selectByCashRedIdAndProductId(Map<String, Object> para) {
		return crpm.selectByCashRedIdAndProductId(para);
	}

}
